//
// Created by admin on 2021/10/17.
//

#ifndef ADDRESSBOOKMANAGEMENT_ADDRESSBOOK_H
#define ADDRESSBOOKMANAGEMENT_ADDRESSBOOK_H
#include "Person.h"
#include <iostream>
#include <vector>
using namespace std;
class AddressBook {
private:
    Person** personList;
    int length;
    int maxSize;
    int indexOf(string name);
    int indexOf(long phone);
    int indexOf(string name,long phone);
public:
    Person** getPersonList();
    AddressBook(int maxSize);
    ~AddressBook();
    int getLength() const;
    int getMaxSize() const;
    void addPerson(Person *person);
    bool isEmpty() const;
    bool isFull() const;
    string deletePerson(string name,long phone);
};


#endif //ADDRESSBOOKMANAGEMENT_ADDRESSBOOK_H
